package com.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.alibaba.druid.stat.TableStat.Condition;
import com.entity.Cake;
import com.entity.CakeType;
import com.entity.ConditionCakeType;


public interface CakeDao {
	/**
	 * 查询所有的蛋糕
	 * @return
	 */
	List<Cake> QueryAllOfCake();
	List<Cake> findCakesLimit(int a,int b);
	/**
	 * 查询search所有的蛋糕
	 * @return
	 */
	List<Cake> QuerySearchAllCake(@Param("title")String title);
	/**
	 * 分类查询蛋糕
	 */
	List<Cake> QueryCakeFromCakeID(@Param("cakeTypeId")int cakeID);
	/**
	 * 根据name查询cake详情
	 * @param cakeName
	 * @return
	 */
	Cake QueryCakeByName(@Param("cakeName")String cakeName);
	 /* 根据cakeId查询蛋糕信息
	 * 
	 */
	Cake QuseryCakeInfoByCakeId(@Param("cakeId")int cakeId);
	
	/**
	 * 添加蛋糕 
	 * @param cake
	 * @return
	 */
	int AddCake(Cake cake);
	
	/**
	 * 添加蛋糕礼品的 类型
	 * @param cakeType
	 * @return
	 */
	int AddCakeType(CakeType cakeType);
	
	/**
	 * 根据 类型id 查询 cake
	 * @param cakeTypeId
	 * @return
	 */
	List<Cake> QueryCakeByTypeId(ConditionCakeType conditionCakeType);
/*	List<Cake> QueryCakeByTypeId(@Param("cakeTypeId")int cakeTypeId,@Param("type")String type,@Param("sort")String sort);
*/	
	
}
